package com.demo.config;

import com.demo.entity.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Spring 配置文件
 * @author
 */
@Configuration
public class SpringConfig {

    @Bean
    public User getUser() {
        User user = new User();
        user.setId(1);
        user.setName("testBean");
        return user;
    }

}
